package com.woniuxy.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description
 * @param:     //参数
 * @Return
 * @Author CuiYC
 * @Date Create by 2025/3/7 16:56
 * 封装响应码值的枚举类
 *      200 成功
 *      400 失败
 */
//@Data //只能用在类上
@AllArgsConstructor
@Getter
public enum ResponseEnum {

    SUCCESS(200,"OK"),
    FAIL(500,"FAIL"),

    LOGIN_ERROR(2000,"LOGINERROR"),
    PARAM_ERROR(2001,"PARAMERROR"),
    NO_LOGIN(2002,"NOLOGIN"),
    SYS_BUSY(2003,"系统繁忙"),

    ;


    private Integer code;
    private String msg;
}
